-------------------------------------------------------------------------------
Example: C Sample-based Talkthrough with 6 SPORTS (using 192 kHz sample rates)
Target: ADSP-21469
Date: February 18, 2009
Tools: VisualDSP++ 5.0
Hardware: ADSP-21469 EZ-KIT LITE and Audio Extender
Author: JT
-------------------------------------------------------------------------------
This project contains a talkthrough example using the audio extender AD1939 CODECS
to acquire and output an audio stream. The digital audio data is available for processing
in the file SPORT1_ISR_process_samples.asm 

The AD1939 CODECS are set up for 192 Khz Sampling rate.  All the three CODECS are used in
this example
The output on OUT2 is delayed and the user can expect to hear an echo effect.

CODECA
SPORT1A receives data from ADC1 and ADC2 of CODECA. The data is transmitted via SPORT0A to DAC1 and 
DAC2 and via SPORT0B to DAC3 and DAC4.

CODECB
SPORT3A receives data from ADC1 and ADC2 of CODECB. The data is transmitted via SPORT2A to DAC1 and 
DAC2 and via SPORT2B to DAC3 and DAC4 of CODECB.

CODECC
SPORT5A receives data from ADC1 and ADC2 of CODECC. The data is transmitted via SPORT2A to DAC1 and 
DAC2 and via SPORT2B to DAC3 and DAC4 of CODECC.




 

All channels of the codec are accessed in  TDM mode. See initSRU.c for the 
details of which DAI pins are used to access the codec. 

-------------------------------------------------------------------------------
Instructions: On the Audio extender board 
              Apply input signal to IN1 of CODECA - OUTPUT seen on OUT1 and OUT2 of CODECA.
              Apply input signal to IN2 of CODECA - OUTPUT seen on OUT3 and OUT4 of CODECA.
              Apply input signal to IN3 of CODECB - OUTPUT seen on OUT5 and OUT6 of CODECB.
              Apply input signal to IN4 of CODECB - OUTPUT seen on OUT7 and OUT8 of CODECB.
              Apply input signal to IN5 of CODECC - OUTPUT seen on OUT9 and OUT10 of CODECC.
              Apply input signal to IN6 of CODECC - OUTPUT seen on OUT11 and OUT12 of CODECC.
              
              To hear output on all the DAC outputs on the audio extender apply input to 
              all the ADC inputs given above.
              


Switch settings for rev 0.2 EZ-Board:
SW1 		ALL OFF
SW2 		ALL OFF
SW3 		ALL OFF
SW7         ALL OFF
SW14        ALL OFF
SW15-18 	ON, OFF, ON, OFF, ON, OFF
SW24 		ALL OFF
SW25 		ALL OFF

Switch settings for Audio EZ-Extender
Default settings for all swith positions.

NOTE:  If the application is halted within the VDSP system, the executable should 
       be reloaded to the target to ensure proper operation.
       
-------------------------------------------------------------------------------
Source Files contained in this directory:
21469 AD1939 C Sample-Based Talkthru 192kHz.dpj      VisualDSP project file
ad1939.h                       Macro Definitions for AD1939 registers
ADDS_21469_EzKit.h             Includes and external declarations used for all files
init1939AviaSPI.c               ADSP-21469 source - AD1939 CODEC A SPI Control Port Subroutines
init1939BviaSPI.c               ADSP-21469 source - AD1939 CODEC B SPI Control Port Subroutines
init1939CviaSPI.c               ADSP-21469 source - AD1939 CODEC B SPI Control Port Subroutines
initSRU.c                      Set up the DAI pins and SRU to connect to the AD1939
initPLL_DDR2DRAM.asm           Configures core for 450 MHz and enables DDR2 memory
Main.c                         Main section to call setup routines
Process_audio.c                Process the multiple audio data streams
SPORT01_TDM_init.c             Initialize the SPORT DMA to communicate with the AD1939 CODEC A
SPORT23_TDM_init.c             Initialize the SPORT DMA to communicate with the AD1939 CODEC B
SPORT45_TDM_init.c             Initialize the SPORT DMA to communicate with the AD1939 CODEC C
SPORT1_ISR_process_samples_.c  Process SPORT 1 interrupts
-------------------------------------------------------------------------------
Dependencies contained in VisualDSP++ default include path:
def21469.h              Header file with generic definitions for ADSP-21469
SRU.h                   Header file with SRU definitions and Macros

*******************************************************************************
Analog Devices, Inc.
DSP Division
Three Technology Way
Norwood, MA 02062

(c) 2009 Analog Devices, Inc.  All rights reserved.
*******************************************************************************
